﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeList_Depth_2.aspx.cs" Inherits="ZLCMS.Web.Example.TreeList_Depth_2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
<!-- 示范TreeDef中深度为2的树，如何获得2层的树列表，并且示范如何使用Repeater嵌套绑定Repeater  -->
    
<table border="0" cellpadding="0" cellspacing="0" style="margin-bottom: 5px" width="100%">
    <asp:Repeater runat="server" ID="rp_depth_1" OnItemDataBound="rp_depth_1_ItemDataBound">
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("Name") %>
                </td>
            </tr>
            <tr>
                <td>
                    <div>
                        <asp:Repeater runat="server" ID="rp_depth_2">
                            <ItemTemplate>
                                --<%#Eval("Name")%><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>

    
    </div>
    </form>
</body>
</html>
